<a href="<?php echo $config['url'] ?>extend/rss/">RSS &raquo;</a>
<table width="100%" border="1">
  <tr><th>Page</th><th>Author</th><th>IP</th><th>Time</th></tr>
<?php
// pagination?
$revisions = sqlite_fetch_all(sqlite_query($db,"SELECT * FROM revisions ORDER BY time DESC"));
for($i=0; $i<50; $i++) {
  $revision = $revisions[$i];
  if(isset($revision)) {
    $title = sqlite_fetch_single(sqlite_query($db,"SELECT name FROM pages WHERE id = ".$revision['pageid'])); ?>
    <tr>
      <td><?php echo getLink('show',$title) ?></td>
      <td><?php echo $revision['author'] ?></td>
      <td><?php echo ipLink($revision['ip']) ?></td>
      <td><?php echo timeDiff($revision['time']) ?></td>
    </tr>
<?php 
  }
}
?>
</table>